-- GENERATED SPELL FOR [Slitherblade Oracle] --


function spell0_4718(pUnit, Event) --@Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(5605,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_4718', 1, 1)
end

function spell1_4718(pUnit, Event) --@Slow,n/a--
pUnit:FullCastSpellOnTarget(11436,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4718', 10000, 1)
end

function Sorts_4718(pUnit, Event)
local choix_sorts_4718 = math.random(0, 1)
if choix_sorts_4718 == 0 then
pUnit:RegisterEvent('spell0_4718', 1, 1)
end
if choix_sorts_4718 == 1 then
pUnit:RegisterEvent('spell1_4718', 1, 1)
end
end

function mob4718_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4718', math.random(1500, 3000), 1)
end

function mob4718_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4718_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4718_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4718, 1, 'mob4718_Action')
RegisterUnitEvent(4718, 2, 'mob4718_Leave')
RegisterUnitEvent(4718, 3, 'mob4718_Kill')
RegisterUnitEvent(4718, 4, 'mob4718_Die')
